/*
 * @Author: silence
 * @Date: 2022-05-14 11:31:48
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-05-14 14:12:08
 * @Description: 全局配置config
 */
class TokenEntity {
  String access_token;
  int expires_in;
  String token_type;

  TokenEntity(
    this.access_token,
    this.expires_in,
    this.token_type,
  );

  factory TokenEntity.fromJson(Map<String, dynamic> json) {
    return TokenEntity(
        json['access_token'], json['expires_in'], json['token_type']);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['access_token'] = access_token;
    data['expires_in'] = expires_in;
    data['token_type'] = token_type;
    return data;
  }

  @override
  String toString() {
    return 'TokenEntity{access_token: $access_token, expires_in: $expires_in, token_type: $token_type}';
  }
}
